package com.hrt.datasender.web.bcplcpointconfig;

import java.util.Date;
import com.btcode.db.fieldtype.FieldType;
import com.btcode.orm.model.BaseModel;
import com.btcode.orm.model.Field;
import com.btcode.orm.model.IField;

@SuppressWarnings("unchecked")
public class BcPlcPointConfigModel extends BaseModel {

    private static final long serialVersionUID = 1L;


    public static String tableName = "BC_PLC_POINT_CONFIG";


    public static IField id = new Field(BcPlcPointConfigModel.class,"ID",FieldType.String,true,true,false);

    public static IField paramCodeBus = new Field(BcPlcPointConfigModel.class,"PARAM_CODE_BUS",FieldType.String,false,true,false);

    public static IField pointName = new Field(BcPlcPointConfigModel.class,"POINT_NAME",FieldType.String,false,true,false);

    public static IField pointPosition = new Field(BcPlcPointConfigModel.class,"POINT_POSITION",FieldType.String,false,true,false);

    public static IField pointDataType = new Field(BcPlcPointConfigModel.class,"POINT_DATA_TYPE",FieldType.String,false,true,false);

    public static IField isDisplayMain = new Field(BcPlcPointConfigModel.class,"IS_DISPLAY_MAIN",FieldType.String,false,true,false);

    public static IField isDisplayDetail = new Field(BcPlcPointConfigModel.class,"IS_DISPLAY_DETAIL",FieldType.String,false,true,false);

    public static IField isComboDisplay = new Field(BcPlcPointConfigModel.class,"IS_COMBO_DISPLAY",FieldType.String,false,true,false);

    public static IField isAlarmPoint = new Field(BcPlcPointConfigModel.class,"IS_ALARM_POINT",FieldType.String,false,true,false);

    public static IField isMeasValue = new Field(BcPlcPointConfigModel.class,"IS_MEAS_VALUE",FieldType.String,false,true,false);

    public static IField showOrder = new Field(BcPlcPointConfigModel.class,"SHOW_ORDER",FieldType.String,false,true,false);

    public static IField createtime = new Field(BcPlcPointConfigModel.class,"CREATETIME",FieldType.DateTime,false,true,false);

    public static IField updatetime = new Field(BcPlcPointConfigModel.class,"UPDATETIME",FieldType.DateTime,false,true,false);

    public static IField createBy = new Field(BcPlcPointConfigModel.class,"CREATE_BY",FieldType.String,false,true,false);

    public static IField updateBy = new Field(BcPlcPointConfigModel.class,"UPDATE_BY",FieldType.String,false,true,false);

    public void setId(String value){
        setFieldValue(BcPlcPointConfigModel.id.getFieldName(), value);
    }

    public String getId(){
        Object value = getFieldValue(BcPlcPointConfigModel.id.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setParamCodeBus(String value){
        setFieldValue(BcPlcPointConfigModel.paramCodeBus.getFieldName(), value);
    }

    public String getParamCodeBus(){
        Object value = getFieldValue(BcPlcPointConfigModel.paramCodeBus.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setPointName(String value){
        setFieldValue(BcPlcPointConfigModel.pointName.getFieldName(), value);
    }

    public String getPointName(){
        Object value = getFieldValue(BcPlcPointConfigModel.pointName.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setPointPosition(String value){
        setFieldValue(BcPlcPointConfigModel.pointPosition.getFieldName(), value);
    }

    public String getPointPosition(){
        Object value = getFieldValue(BcPlcPointConfigModel.pointPosition.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setPointDataType(String value){
        setFieldValue(BcPlcPointConfigModel.pointDataType.getFieldName(), value);
    }

    public String getPointDataType(){
        Object value = getFieldValue(BcPlcPointConfigModel.pointDataType.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setIsDisplayMain(String value){
        setFieldValue(BcPlcPointConfigModel.isDisplayMain.getFieldName(), value);
    }

    public String getIsDisplayMain(){
        Object value = getFieldValue(BcPlcPointConfigModel.isDisplayMain.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setIsDisplayDetail(String value){
        setFieldValue(BcPlcPointConfigModel.isDisplayDetail.getFieldName(), value);
    }

    public String getIsDisplayDetail(){
        Object value = getFieldValue(BcPlcPointConfigModel.isDisplayDetail.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setIsComboDisplay(String value){
        setFieldValue(BcPlcPointConfigModel.isComboDisplay.getFieldName(), value);
    }

    public String getIsComboDisplay(){
        Object value = getFieldValue(BcPlcPointConfigModel.isComboDisplay.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setIsAlarmPoint(String value){
        setFieldValue(BcPlcPointConfigModel.isAlarmPoint.getFieldName(), value);
    }

    public String getIsAlarmPoint(){
        Object value = getFieldValue(BcPlcPointConfigModel.isAlarmPoint.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setIsMeasValue(String value){
        setFieldValue(BcPlcPointConfigModel.isMeasValue.getFieldName(), value);
    }

    public String getIsMeasValue(){
        Object value = getFieldValue(BcPlcPointConfigModel.isMeasValue.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setShowOrder(String value){
        setFieldValue(BcPlcPointConfigModel.showOrder.getFieldName(), value);
    }

    public String getShowOrder(){
        Object value = getFieldValue(BcPlcPointConfigModel.showOrder.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setCreatetime(Date value){
        setFieldValue(BcPlcPointConfigModel.createtime.getFieldName(), value);
    }

    public Date getCreatetime(){
        Object value = getFieldValue(BcPlcPointConfigModel.createtime.getFieldName());
        return getValueConver().converToDate(value);
    }

    public void setUpdatetime(Date value){
        setFieldValue(BcPlcPointConfigModel.updatetime.getFieldName(), value);
    }

    public Date getUpdatetime(){
        Object value = getFieldValue(BcPlcPointConfigModel.updatetime.getFieldName());
        return getValueConver().converToDate(value);
    }

    public void setCreateBy(String value){
        setFieldValue(BcPlcPointConfigModel.createBy.getFieldName(), value);
    }

    public String getCreateBy(){
        Object value = getFieldValue(BcPlcPointConfigModel.createBy.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setUpdateBy(String value){
        setFieldValue(BcPlcPointConfigModel.updateBy.getFieldName(), value);
    }

    public String getUpdateBy(){
        Object value = getFieldValue(BcPlcPointConfigModel.updateBy.getFieldName());
        return getValueConver().converToString(value);
    }


    public String getTableName() {
        return tableName;
    }


    public boolean isNeedCache() {
        return false;
    }

}